package com.oocl.o2o.admin.dao;

import java.util.List;

import com.oocl.o2o.admin.entity.Advertisement;
import com.oocl.o2o.admin.entity.ComplaintInfo;
import com.oocl.o2o.admin.entity.Merchant;

public interface AdvertisementDao {

	/**
	 * 
	 * @param advertisement
	 * @return
	 */
	public Advertisement add(Advertisement advertisement);

	/**
	 * 
	 * @param id
	 * @return
	 */
	public Advertisement delete(String id);

	
	
	/**
	 * 
	 * @param advertisement
	 * @return
	 */
	public Advertisement update(Advertisement advertisement);

	/**
	 * 
	 * @param approvalStatus
	 * @return
	 */
	public List<Advertisement> findByApprovalStatus(int approvalStatus);

	/**
	 * 
	 * @return
	 */
	public List<Advertisement> findAll();

	/**
	 * 
	 * @param id
	 * @return
	 */
	public List<Advertisement> findByMerchantId(String id);
	
	/**

	 * 

	 * @param id

	 * @return

	 */
	public Advertisement findById(String id);

}
